<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
<head>
<base href="${base}" target="_self" />
<meta charset="utf-8">
<script type="text/javascript" src="${sbase}scripts/jquery-1.7.1.js"></script>
<!--[if lt IE 9]>
     <script src="${sbase}scripts/bootstrap/js/html5.js"></script>
<![endif]-->

<link href="${sbase}scripts/bootstrap/css/bootstrap.css" rel="stylesheet" />

<!-- [if IE 6]>   
 
	<link href="${sbase}scripts/bootstrap/ie/ie6.min.css" rel="stylesheet"   />
	
<![endif] -->
<script type="text/javascript"> 
   var  sbase = '${sbase}';
</script>
<script src="${sbase}scripts/tools.js" type="text/javascript"></script>
<script src="scripts/apps/app.js" type="text/javascript"></script>
<link href="css/apps/picture/list.css" type="text/css" rel="stylesheet" />
<script src="scripts/apps/picture/select.js" type="text/javascript"></script>
</head>
<body>
<form id="dataForm" method="post">
<table id="list" class="table table-striped">
	<thead>
		<tr>
			<th>名称</th>
			<th>预览</th>
			<th>管理</th>

		</tr>
	</thead>
	<tbody>
		<c:forEach items="${pageData.rows}" var="item">
			<tr>
				<td>${item.name}</td>
				<td><img src="picture/picture!view?bean.id=${item.id}"
					width="100" height="100" alt="${item.name}" /></td>
				<td>

        				<button 
        				 class="btn btn-waring"
        				 onclick="selectMe('${item.id}@picture/picture!view?bean.id=${item.id}')"
        				 type="button"    
        				>选择</button>
						
						
				</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="3">${pageData.pagination}</td>
		</tr>
	</tfoot>
</table>
</form>
<form class="well form-inline" 
      method="post"
      enctype="multipart/form-data"
 action="picture/picture!upload" target="queryFrame">
	<input type="file" name="upLoad" /> <button type="submit" class="btn">上传</button>
</form>
<iframe name="queryframe" style="display:none"></iframe>
</body>
</html>